Copy Module from one project/folder to another project/ Folder

Dear All,

I want to copy one formal module from one Project/Folder to another Project/Folder

I tried to use the below code and as per per documentation it will copy module in to same Project/Folder with the Different name, Description we provide.

ModName_ m = module("/abcProj/DemoMod")

print copy(m,"DemoMod1","New Description")

Can you please help me how to solve this problem. 

 

Thanks in Advance.


DOORSDXL - Thu Oct 20 08:51:20 EDT 2016

Re: Copy Module from one project/folder to another project/ Folder
DOORSHAM - Thu Oct 20 09:10:35 EDT 2016

bool copy(ModName_ modRef, string newName, string newDesc)

 

Copies module modRef to new name newName, with description newDesc, within the same folder or project. All outgoing links are copied, but incoming links are not copied, and linksets are not updated.

Re: Copy Module from one project/folder to another project/ Folder
Mike.Scharnow - Thu Oct 20 09:48:18 EDT 2016

@DOORSHAM 5c843324-bbb9-47c0-8e6d-48992ddaca3c​: yes, that's what DOORSDXL did. 

@DOORSDXL 1fe80134-1040-4069-ac81-bfc04ed0927d: ​use clipCopy and clipPaste